package com.example.order.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.feign.pojo.UserResponse;
import lombok.Data;

@TableName("orders")
@Data
public class Order {
	private String id;
	private String orderNo;
	private String userId;
	@TableField(exist = false)
	private String userName;
	public void  setUser(UserResponse user){
		this.userName= user.getUserName();
	}
}
